ca74a048ae308109e0231985e2265694fcaf4e99,src/main/java/org/codehaus/mojo/jaxb2/schemageneration/postprocessing/javadoc/DomHelper.java,DomHelper,getFieldOrMethodLocationIfValid,#Node#Node#Set#,286
Before Change
final String className = current.getClassName();
try {
if (fieldName.equalsIgnoreCase(DomHelper.getNameAttribute(aNode))
&& className.equalsIgnoreCase(DomHelper.getNameAttribute(containingClassNode))) {
toReturn = (T) current;
}
After Change
// <xsd:element name="Line1" type="xsd:string"/>, implying that
// we must retrieve the 'name' attribute's value.
//
final String attributeValue = DomHelper.getNameAttribute(aNode) == null
? DomHelper.getValueAttribute(aNode)
: DomHelper.getNameAttribute(aNode);
if (fieldName.equalsIgnoreCase(attributeValue)